package com.sjgs.gis.fs;

import com.sjgs.gis.domain.DataFile;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.ResourceRegion;
import org.springframework.http.HttpHeaders;
import reactor.core.publisher.Mono;

import java.util.List;

public interface FSStore {
    void registryFS();

    boolean mkdir(String dir);

    boolean rmdir(String dir);

    List<String> getFiles(String dir);

    boolean createFile(String path, String content);

    boolean remove(String path);

    boolean rename(String oldName, String newName);

    boolean pushFile(String sourcePath, String targetPath);

    boolean copyFile(String sourcePath, String targetPath);
}
